package tech.aistar.corejava.day07.singleton;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:
 * @date 2019/7/23 0023
 */
public class TestMyDataSource {
    public static void main(String[] args) {

        //获取实例
        MyDataSource m1 = MyDataSource.getInstance();

        MyDataSource m2 = MyDataSource.getInstance();

        System.out.println(m1 == m2);//true
    }
}
